package com.enjoyiot.module.bms.dal.dataobject;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.enjoyiot.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;

@TableName("bms_device")
@KeySequence("bms_device_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BmsDeviceDO extends TenantBaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;

    /**
     * 关联资产ID
     */
    private Long assetId;

    /**
     * 安装日期
     */
    private LocalDateTime installDate;

    /**
     * 设备状态(0-运行中；1-故障；2-禁用)
     */
    private Integer deviceStatus;

    /**
     * 验收状态(0-未验收；1-已验收)
     */
    private Integer acceptanceStatus;

    /**
     * 验收时间
     */
    private LocalDateTime acceptanceDate;

}
